package com.dmap.community.constant;

public class Constant {

    /**
     * 全局通用返回码及描述
     */
    public static final Integer RESPONSE_SUCCESS = 0;
    public static final String RESPONSE_SUCCESS_MSG = "成功";

    public static final Integer RESPONSE_SUBMITDATA_ERROR = 100000;
    public static final String RESPONSE_SUBMITDATA_ERROR_MSG = "请求方提交数据格式错误";

    public static final Integer RESPONSE_PARAM_ERROR = 100001;
    public static final String RESPONSE_PARAM_ERROR_MSG = "缺少必要的参数";

    public static final Integer RESPONSE_TOKEN_ERROR = 100002;
    public static final String RESPONSE_TOKEN_ERROR_MSG = "访问令牌错误";

    public static final Integer RESPONSE_UNKNOW_ERROR = 100003;
    public static final String RESPONSE_UNKNOW_ERROR_MSG = "未知错误";

    public static final Integer RESPONSE_INSERT_ERROR = 10004;
    public static final String RESPONSE_INSERT_ERROR_MSG = "添加失败";

    public static final Integer RESPONSE_DELETE_ERROR = 10005;
    public static final String RESPONSE_DELETE_ERROR_MSG = "删除失败或你已经删除该数据了";

    public static final Integer RESPONSE_UPDATE_ERROR = 10006;
    public static final String RESPONSE_UPDATE_ERROR_MSG = "修改失败";

    /**
     * redis缓存 key 前缀定义
     */
    public static final String CACHE_COMMUNITY_THEME_BROWSE = "1";//社区主题浏览量key前缀
    public static final String CACHE_UCENTER_AUTH_TOKEN = "2";//用户认证token记录key前缀
    public static final String CACHE_UCENTER_SMS_CODE = "3";//用户中心短信认证key前缀
    public static final String CACHE_UCENTER_USER_INFO = "4";//用户中心用户信息key前缀
    public static final String CACHE_INFOMATION_INFO = "5";//资讯key前缀
    public static final String CACHE_GOSSIP_THEME_INFO = "6";//八卦频道主题列表key前缀
    
}
